package com.bodu.system.template.filetemplate;

import com.bodu.system.entity.po.CodeGenConfigPo;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @author Administrator
 */
@Component
public class ControllerJavaTemplate extends AbstractTemplate implements CommonTemplate {

    @Override
    public String getTemplateName() throws IOException {
        return "Controller.java.template.ftl";
    }

    @Override
    public String getFilePath(CodeGenConfigPo configPo) throws IOException {
        return configPo.getControllerPath();
    }
}
